package yl.hs.bmipfull.controllers.salemanage;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import yl.hs.bmipfull.controllers.ControllerBase;
import yl.hs.bmipfull.service.salemanage.ISaleSystemLogService;
import yl.hs.bmipfull.viewmodels.WebResult;

/**
 * 作用:  销售操作日志控制层<br/>
 * 创建时间: 2021年05月27日 09时34分18秒 <br/>
 *
 * @author 张凯
 */
@Api(value = "销售操作日志Web接口", tags = "销售管理——销售操作日志操作")
@RequestMapping(value = "/api/saleSystem/Log")
@RestController
public class SaleSystemLogController extends ControllerBase {

    @Autowired
    ISaleSystemLogService service;

    @ApiOperation(value = "查询销售操作日志", notes = "根据销售操作日志编号查询销售操作日志")
    @RequestMapping(value = "/{dataSn}", method = RequestMethod.GET)
    public WebResult findBySn(@ApiParam(value = "数据编号") @PathVariable String dataSn, @RequestParam String typeCode) {
        return success("查询成功", service.queryByDataSn(dataSn, typeCode));
    }


}